home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / ptv1n4.arc / L6.ASM < prev    next >
Assembly Source File  |  1990-09-13  |  414b  |  14 lines

  1.  
  2.  
  3.      CLC            ;clear the carry for the initial addition
  4. LOOP_TOP:
  5.      MOV  AX,[SI]   ;get next source operand word
  6.      ADC  [DI],AX   ;add with carry to dest operand word
  7.      LAHF           ;set aside the Carry flag
  8.      ADD  SI,2      ;point to next source operand word
  9.      ADD  DI,2      ;point to next dest operand word
  10.      SAHF           ;restore the Carry flag
  11.      LOOP LOOP_TOP
  12.  
  13.  
  14.